{% extends 'base.html' %} {% load crispy_forms_tags %} {% block title %}{{ task.title }} - Task Details{% endblock %} {% block content %}

{{ task.title }}

{{ task.get_status_display }} {{ task.get_priority_display }}
Description

{{ task.description|linebreaksbr }}

Assigned To

{{ task.assigned_to.get_full_name|default:task.assigned_to.username }}

Due Date

{{ task.due_date|date:"F j, Y"|default:"No due date" }}

Created By

{{ task.created_by.get_full_name|default:task.created_by.username }}

Created At

{{ task.created_at|date:"F j, Y H:i" }}

{% if task.completed_at %}
Completed At

{{ task.completed_at|date:"F j, Y H:i" }}

{% endif %}
Edit
{% csrf_token %}
Delete
Comments
{% if task.comments.all %} {% for comment in task.comments.all %}
{{ comment.author.get_full_name|default:comment.author.username }} {{ comment.created_at|timesince }} ago
{% if comment.author == request.user or request.user.is_staff %}
{% csrf_token %}
{% endif %}

{{ comment.content|linebreaksbr }}

{% endfor %} {% else %}

No comments yet.

{% endif %}
{% csrf_token %} {{ comment_form|crispy }}
Attachments
{% if task.attachments.all %}
{% for attachment in task.attachments.all %}
{{ attachment.filename }} Uploaded by {{ attachment.uploaded_by.get_full_name|default:attachment.uploaded_by.username }} {{ attachment.uploaded_at|timesince }} ago
{% if attachment.uploaded_by == request.user or request.user.is_staff %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% else %}

No attachments yet.

{% endif %}
{% csrf_token %} {{ attachment_form|crispy }}
Task Details
  • Status: {{ task.get_status_display }}
  • Priority: {{ task.get_priority_display }}
  • Created By: {{ task.created_by.get_full_name|default:task.created_by.username }}
  • Assigned To: {{ task.assigned_to.get_full_name|default:task.assigned_to.username }}
  • Due Date: {{ task.due_date|date:"F j, Y"|default:"No due date" }}
  • Created At: {{ task.created_at|date:"F j, Y H:i" }}
  • {% if task.completed_at %}
  • Completed At: {{ task.completed_at|date:"F j, Y H:i" }}
  • {% endif %}
Quick Actions
Edit Task
{% csrf_token %}
Back to List
{% endblock %}